package com.designpattern.decoration.two;

public class Decorator extends Componet {

    private Componet componet;

    public Componet getComponet(){
        return componet;
    }

    public void setComponet(Componet componet) {
        this.componet = componet;
    }

    void operation() {
        if (null != componet) {
            componet.operation();
        }
    }
}
